import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
	{
	  path: '/',
	  name: 'Index',
	  component: () => import('../views/Index.vue'),
	  children:[
		{path:'/',component:() => import('../views/canteen/userList.vue')},
	  	{path:'settings',component:() => import('../views/canteen/settings.vue')},
		{path:'manage',component:() => import('../views/userManage/userList.vue')},
	  ]
	},
	{
	  path: '/login',
	  name: 'login',
	  component: () => import('../views/login'),
	  children:[
	  	
	  ]
	}
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
